<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        h1 {
            height: 200px;
            background-color: gray;
            text-align: center;
            line-height: 200px;
            font-size: 100px;
        }

        @media (width:800px) {
            h1 {
                background-color: green;
            }
        }

        @media (max-width:700px) {
            h1 {
                background-color: orange;
            }
        }

        @media (min-width:900px) {
            h1 {
                background-color: deepskyblue;
            }
        }

        @media (device-width:1536px) {
            h1 {
                background-color: rgb(159, 29, 151);
            }
        }
    </style>
</head>

<body>
    <h1>大富大贵</h1>
</body>

</html>